package com.zhss.dfs.server.model;

import com.zhss.dfs.server.DataNodeInfo;

/**
 * @description:
 * @Author liu Weidong
 * @Email:
 * @Date: 2024/5/27 16:15
 * @Version 1.0
 */
public class FileReplicaTask {

    private Long fileLength;

    private String fileName;

    private DataNodeInfo sourceDataNode;

    private DataNodeInfo destDataNode;

    public FileReplicaTask(Long fileLength, String fileName, DataNodeInfo sourceDataNode, DataNodeInfo destDataNode) {
        this.fileLength = fileLength;
        this.fileName = fileName;
        this.sourceDataNode = sourceDataNode;
        this.destDataNode = destDataNode;
    }

    public Long getFileLength() {
        return fileLength;
    }

    public void setFileLength(Long fileLength) {
        this.fileLength = fileLength;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public DataNodeInfo getSourceDataNode() {
        return sourceDataNode;
    }

    public void setSourceDataNode(DataNodeInfo sourceDataNode) {
        this.sourceDataNode = sourceDataNode;
    }

    public DataNodeInfo getDestDataNode() {
        return destDataNode;
    }

    public void setDestDataNode(DataNodeInfo destDataNode) {
        this.destDataNode = destDataNode;
    }
}
